/**********************************************************************
 *@Project： CloudTest
 *@File: BootApplication
 *@Date: 2017/3/3
 *@Copyright (C) 2013-2017 http://www.posun.cn. All Rights Reserved.
 ***********************************************************************
 *注意： 本内容仅限于深圳市普盛实业有限公司内部使用，禁止外泄
 **********************************************************************
 */
package com.posun.edu.system;

import com.posun.cloud.tracing.enums.LogType;
import com.posun.framework.log.AresLog;
import com.posun.framework.log.LogBuilder;
import com.posun.framework.orm.config.EnableMybatis;
import com.posun.framework.orm.mapper.BaseMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * <p>
 * TODO<br>
 *
 * @author YL
 * @version 1.0
 * @createTime 2017/3/3 16:19
 * @ChangeLog
 */
@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableJms
@EnableMybatis
@MapperScan(value = "com.posun.edu",markerInterface = BaseMapper.class)
@ImportResource("classpath:spring/spring-config.xml")
@EnableElasticsearchRepositories("com.posun.edu.system.search")
public class SystemApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(SystemApplication.class);
        AresLog.info(new LogBuilder(SystemApplication.class, LogType.DEBUG, "System Provider started...."));
    }
}
